package com.qq.first_project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qq.first_project.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qq.first_project.entity.vo.ProductVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Qiu
 * @since 2022-04-06
 */
public interface ProductService extends IService<Product> {

    //导出
    void excelExport() throws Exception;

    //导入
    void importExcel(MultipartFile excelFile) throws Exception;

    // 两表联查
    // 根据id查询
    Product getProductById(Long id);

    // 查询所有
    IPage<ProductVo> queryProductList(Page<ProductVo> page, String name);
}
